<!-- $Id: tasting_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{include file="pageheader.htm"}
<div class="main-div">
<form method="post" action="tasting.php" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
<table cellspacing="1" cellpadding="3" width="100%">
   <tr>
    <td class="label"><a href="javascript:showNotice('notice_title');" title="{$lang.form_notice}">
        <img src="images/notice.gif" width="16" height="16" border="0" alt="{$lang.form_notice}"></a>{$lang.title}</td>
    <td><input type="text" name="title" maxlength="60" size="100" value="{$tasting.title|escape}" />{$lang.require_field}
    <br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="notice_title">{$lang.notice_title}</span>
    </td>
  </tr>
  <tr>
    <td class="label"><a href="javascript:showNotice('notice_link');" title="{$lang.form_notice}">
        <img src="images/notice.gif" width="16" height="16" border="0" alt="{$lang.form_notice}"></a>{$lang.link}</td>
    <td><input type="text" name="link" maxlength="60" size="40" value="{$tasting.link|escape}" />
    <br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="notice_link">{$lang.notice_link}</span>
    </td>
  </tr>
 <tr>
    <td class="label">{if $tasting.img neq ""}<a href="javascript:showNotice('warn_tastingimg');" title="{$lang.form_notice}">
        <img src="images/warning_small.gif" width="16" height="16" border="0" alt="{$lang.form_notice}"></a>{/if}{$lang.tasting_img}</td>
    <td><input type="file" name="img"  size="45">{if $tasting.img neq ""}<input type="button" value="{$lang.drop_tasting_img}" onclick="if (confirm('{$lang.confirm_drop_tasting_img}'))location.href='tasting.php?act=drop_tasting_img&id={$tasting.tasting_id}'">{/if}
    <br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="warn_tastingimg">{$lang.warn_tastingimg}</span>
    </td>
</tr>
  <tr>
    <td class="label">{$lang.content}</td>
    <td><textarea  name="tasting_desc" cols="80" rows="10">{$tasting.content|escape}</textarea></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <input type="submit" class="button" value="{$lang.button_submit}" />
      <input type="reset" class="button" value="{$lang.button_reset}" />
      <input type="hidden" name="act" value="{$form_action}" />
      <input type="hidden" name="id" value="{$tasting.tasting_id}" />
      <input type="hidden" name="old_title" value="{$tasting.title}" />
      <input type="hidden" name="old_img" value="{$tasting.img}">
    </td>
  </tr>
</table>
</form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
<!--
document.forms['theForm'].elements['tasting_name'].focus();
/**
 * 检查表单输入的数据
 */
function validate()
{
    validator = new Validator("theForm");
    validator.required("title",  no_tastingname);
    return validator.passed();
}
onload = function()
{
    // 开始检查订单
    startCheckOrder();
}
//-->
</script>
{/literal}
{include file="pagefooter.htm"}